<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    
    <title>Windows环境搭建Red5流媒体服务器指南 | 写作之路</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="b,c,Gradle">
    <meta name="description" content="Windows环境搭建Red5流媒体服务器指南">
<meta name="keywords" content="b,c,Gradle">
<meta property="og:type" content="article">
<meta property="og:title" content="Windows环境搭建Red5流媒体服务器指南">
<meta property="og:url" content="https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/index.html">
<meta property="og:site_name" content="写作之路">
<meta property="og:description" content="Windows环境搭建Red5流媒体服务器指南">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2018-06-14T02:43:55.919Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Windows环境搭建Red5流媒体服务器指南">
<meta name="twitter:description" content="Windows环境搭建Red5流媒体服务器指南">
    
        <link rel="alternate" type="application/atom+xml" title="写作之路" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">godfeer</h5>
          <a href="mailto:godfeer@aliyun.com" title="godfeer@aliyun.com" class="mail">godfeer@aliyun.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/e9ab98e991ab" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://weibo.com/2134523903/profile?rightmod=1&wvr=6&mod=personinfo" target="_blank" >
                <i class="icon icon-lg icon-weibo"></i>
                Weibo
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/custom"  >
                <i class="icon icon-lg icon-link"></i>
                我的文章
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Windows环境搭建Red5流媒体服务器指南</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="Search">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Windows环境搭建Red5流媒体服务器指南</h1>
        <h5 class="subtitle">
            
                <time datetime="2018-06-10T03:22:02.000Z" itemprop="datePublished" class="page-time">
  2018-06-10
</time>


            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    

<article id="post-Windows环境搭建Red5流媒体服务器指南"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Windows环境搭建Red5流媒体服务器指南</h1>
        <div class="post-meta">
            <time class="post-time" title="2018-06-10 11:22:02" datetime="2018-06-10T03:22:02.000Z"  itemprop="datePublished">2018-06-10</time>

            


            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <p>##测试环境：Windows 7</p>
<p><strong>一、</strong>   <strong>下载安装程序</strong></p>
<ol>
<li>red5-server 下载地址</li>
</ol>
<p><a href="https://github.com/Red5/red5-server/releases" target="_blank" rel="noopener">https://github.com/Red5/red5-server/releases</a></p>
<ol>
<li>JDK 下载地址</li>
</ol>
<p><a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" target="_blank" rel="noopener">http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html</a></p>
<ol>
<li>red5示例（如oflaDemo）下载地址，要FQ</li>
</ol>
<p><a href="http://red5.googlecode.com/svn/java/example/trunk/" target="_blank" rel="noopener">http://red5.googlecode.com/svn/java/example/trunk/</a></p>
<ol>
<li>flowplayer下载地址</li>
</ol>
<p><a href="https://codeload.github.com/flowplayer/flash/zip/release_3_2_18" target="_blank" rel="noopener">https://codeload.github.com/flowplayer/flash/zip/release_3_2_18</a></p>
<p><a href="http://releases.flowplayer.org/flowplayer.rtmp/flowplayer.rtmp-3.2.13.swf" target="_blank" rel="noopener">http://releases.flowplayer.org/flowplayer.rtmp/flowplayer.rtmp-3.2.13.swf</a></p>
<p><strong>二、</strong>   <strong>安装JDK</strong></p>
<p><strong>三、</strong>   <strong>设置Java环境变量</strong></p>
<p>1)       在桌面用鼠标右键点击“计算机”，在弹出的菜单中选择“属性”选项，弹出“系统属性”窗口；</p>
<p>2)       在“系统属性”窗口，点击“高级”切换到高级系统设置Tab，然后点击</p>
<p>“环境变量”按钮，弹出“环境变量”窗口；</p>
<p>3)       在“环境变量”窗口，点击用户变量或者系统变更区域的“新建”按钮，弹出新建变量窗口，然后输入“变量名”：JAVA_HOME，　“变量值”：C:\Program Files\Java\jdk1.8.0_51。</p>
<p>​    注：“变量值”这一栏主要填写的是你安装JDK的路径，这里根据个人的情况可能会有所不同。</p>
<p>4)       上步结束之后，双击系统变量中的“Path”，在弹出的编辑系统变量窗口，</p>
<p>在“变量值”一栏的最前面添加如下的路径：</p>
<p>​    %Java_Home%\bin;%Java_Home%\jre\bin;</p>
<p>​    也可以用完全路径，如：C:\Program Files\Java\jdk1.8.0_51\bin;</p>
<p><strong>四、</strong>   <strong>安装red5</strong></p>
<p>把下载的red5安装包解压（本指南下载的是Zip安装包），复制到要安装的目录，如F:\red5\Test\red5-server-1.0.5</p>
<p><strong>五、</strong>   <strong>设置red5环境变量</strong></p>
<p>根据设置Java环境变量的方法，添加red5_home和ClassPath</p>
<p>变量名：red5_home</p>
<p>变量值：F:\red5\Test\red5-server-1.0.5  （此处要根据你的安装目录调整）</p>
<p>变量名：ClassPath</p>
<p>变量值：.  （不配置此变量，或者此变更的值不是“.”，red5启动的过程会抛异常）</p>
<p><strong>六、</strong>   <strong>启动red5</strong></p>
<p>双击“red5.bat”文件，启动red5。</p>
<p><strong>七、</strong>   <strong>测试red5是否部署成功</strong></p>
<p>在浏览器中输入<a href="http://localhost:5080/，可成功打开，表示red5部署成功。" target="_blank" rel="noopener">http://localhost:5080/，可成功打开，表示red5部署成功。</a></p>
<p>八、测试应用</p>
<p>将下载的oflaDemo.war文件解压后，放到red5部署目录中的webapps目录，如F:\red5\Test\red5-server-1.0.5\webapps。本指南测试时将目录名改成了oflaDemo2。</p>
<p>oflaDemo.war下载地址: <a href="http://pan.baidu.com/s/1hqAPl6O" target="_blank" rel="noopener">http://pan.baidu.com/s/1hqAPl6O</a></p>
<p>重新启动red5服务器。</p>
<p>然后在浏览器中访问<a href="http://localhost:5080/oflaDemo2/，成功打开后，播放页面中的视频，如果顺利播放，表示应用部署成功。" target="_blank" rel="noopener">http://localhost:5080/oflaDemo2/，成功打开后，播放页面中的视频，如果顺利播放，表示应用部署成功。</a></p>
<p>注：如果在其它机器访问，将localhost改成服务器的IP即可。</p>
<p><strong>九、</strong>   <strong>在其它机器用FlowPlayer测试red5服务器上的视频播放</strong></p>
<p>将测试示例拷到要测试的机器，修改示例中的red5服务器地址和视频文件名称，在浏览器上打开测试示例中的flowplayer.html文件，看视频是否正常播放。</p>
<p>测试示例下载地址：<a href="http://pan.baidu.com/s/1dD8n8jf" target="_blank" rel="noopener">http://pan.baidu.com/s/1dD8n8jf</a></p>

        </div>

        <blockquote class="post-copyright">
    
    <div class="content">
        
<span class="post-time">
    Last updated: <time datetime="2018-06-14T02:43:55.919Z" itemprop="dateUpdated">2018-06-14 10:43:55</time>
</span><br>


        
        这里可以写作者留言，标签和 hexo 中所有变量及辅助函数等均可调用，示例：<a href="/2018/06/10/Windows环境搭建Red5流媒体服务器指南/" target="_blank" rel="external">https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/</a>
        
    </div>
    
    <footer>
        <a href="https://e9ab98e991ab.github.io">
            <img src="/img/avatar.jpg" alt="godfeer">
            godfeer
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Gradle/">Gradle</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/b/">b</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/c/">c</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/&title=《Windows环境搭建Red5流媒体服务器指南》 — 写作之路&pic=https://e9ab98e991ab.github.io/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/&title=《Windows环境搭建Red5流媒体服务器指南》 — 写作之路&source=" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Windows环境搭建Red5流媒体服务器指南》 — 写作之路&url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/&via=https://e9ab98e991ab.github.io" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2018/06/10/Gradle阿里云镜像源/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">Gradle阿里云镜像源</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2018/06/10/服务器命令/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">服务器命令</h4>
      </a>
    </div>
  
</nav>



    

















</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        谢谢大爷~
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/img/wechat.jpg" alt="打赏二维码">
        </div>
        
        <label class="reward-toggle">
            <input id="rewardToggle" type="checkbox" class="reward-toggle-check"
                data-wechat="/img/wechat.jpg" data-alipay="/img/alipay.jpg">
            <div class="reward-toggle-ctrol">
                <span class="reward-toggle-item wechat">微信</span>
                <span class="reward-toggle-label"></span>
                <span class="reward-toggle-item alipay">支付宝</span>
            </div>
        </label>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>This blog is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.</span>
        </p>
    </div>
    <div class="bottom">
        <p><span>godfeer &copy; 2015 - 2018</span>
            <span>
                
                Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
            </span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/&title=《Windows环境搭建Red5流媒体服务器指南》 — 写作之路&pic=https://e9ab98e991ab.github.io/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/&title=《Windows环境搭建Red5流媒体服务器指南》 — 写作之路&source=" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Windows环境搭建Red5流媒体服务器指南》 — 写作之路&url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/&via=https://e9ab98e991ab.github.io" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="//api.qrserver.com/v1/create-qr-code/?data=https://e9ab98e991ab.github.io/2018/06/10/Windows环境搭建Red5流媒体服务器指南/" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };


</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = '死鬼去哪里了！';
            clearTimeout(titleTime);
        } else {
            document.title = '(つェ⊂)咦!又好了!';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
